package com.kly.sc.api.application.controller.system;

import com.kly.sc.api.application.annos.SignIgnore;
import com.kly.sc.api.application.controller.system.response.SystemQARsp;
import com.kly.sc.api.application.service.user.SystemQAService;
import com.kly.sc.api.application.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@RestController
@RequestMapping("/api/system/qa")
@Api(value = "QA信息", tags = "QA信息")
public class SystemQAController {

    @Autowired
    private SystemQAService systemQAService;

    @SignIgnore
    @GetMapping("/list")
    @ApiOperation(value = "QA信息列表", notes = "QA信息列表")
    public Result<List<SystemQARsp>> getUserLikeList(@RequestParam @ApiParam("appCode") String appCode) {
        return systemQAService.getSystemQaList(appCode);
    }
}
